<?php
/**
 * @author wangwei
 * @package Simplez
 */
get_header();
?>

<div id="container">

<div id="advertising">
	<p>
	<script type="text/javascript">
	//edit start
	var swf_width=588;
	var swf_height=238;
	var config='8|0xffffff|0x666666|80|0xffffff|0xff0000|0x000000';
	var files='',links='', texts='欢迎使用simplez';
	files+='|<?php bloginfo('stylesheet_directory'); ?>/images/02.jpg';links='http://code.google.com/p/wallevextend/downloads/list';texts='欢迎使用simplez';
	files+='|<?php bloginfo('stylesheet_directory'); ?>/images/01.jpg';links='http://code.google.com/p/wallevextend/downloads/list';texts='欢迎使用simplez';
	files+='|<?php bloginfo('stylesheet_directory'); ?>/images/02.jpg';links='http://code.google.com/p/wallevextend/downloads/list';texts='欢迎使用simplez';
	files+='|<?php bloginfo('stylesheet_directory'); ?>/images/01.jpg';links='http://code.google.com/p/wallevextend/downloads/list';texts='欢迎使用simplez';
	//edit end

	files=files.substring(1);links=links.substring(0);texts=texts.substring(1);
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
	document.write('<param name="movie" value="<?php bloginfo('stylesheet_directory'); ?>/slIDe.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name=wmode value="opaque" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="FlashVars" value="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
	document.write('<embed src="<?php bloginfo('stylesheet_directory'); ?>/slIDe.swf" wmode="opaque" FlashVars="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	</script>
	</p>
</div>

<div id="mainbox">

	<div class="news">
	<h5>最新产品</h5>
	<ul>
	<?php query_posts('showposts=10&cat=3'); ?>
	<?php if (have_posts()) : ?>
		
		<?php while (have_posts()) : the_post(); ?>
		<?php if (in_category("3")) { ?>
			<li class='limit-border'>
			<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php echo cutstr(get_the_title(),45); ?></a>
			</li>
		<?php }?>
		<?php endwhile; ?>
	<?php endif; ?>
	</ul>
	</div>
	
	<div class="recruit">
	<h5>促销产品</h5>
	<ul>
		<?php query_posts('showposts=10&cat=4'); ?>
		<?php if (have_posts()) : ?>
			
			<?php while (have_posts()) : the_post(); ?>
			<?php if (in_category("4")) { ?>
				<li class='limit-border'>
				<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php echo cutstr(get_the_title(),45);?></a>
				</li>
			<?php }?>
			<?php endwhile; ?>
		<?php endif; ?>
	</ul>
	</div>
	
</div>

</div>

<?php get_sidebar('index');?>

<?php get_footer(); ?>
